package configUtls

import "idle/utils/stringUtils"

func GetValueByType(typ, value string) interface{} {
	switch typ {
	case "int":
		return stringUtils.ToInt(value)
	case "string":
		return value
	case "bool":
		return value == "1"
	}
	return value
}
